package com.iatinspur.pojo;


import java.util.ArrayList;
import java.util.List;

public class Student {
    private Integer id;
    private String name;
    private int age;

    public List<String> beLike =new ArrayList<String>(1);

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object obj) {
        if(!(obj instanceof Student)){
            return false;
        }

        if(!(this.id == ((Student)obj).getId())){
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        return ("student"+this.id).hashCode();
    }
}
